﻿@using MvcApplication.Common;
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    @Scripts.Render("~/Content/jquery/jquery-1.11.2.js")

    @Styles.Render("http://cdn.amazeui.org/amazeui/2.5.2/css/amazeui.min.css")
    @Scripts.Render("http://cdn.amazeui.org/amazeui/2.5.2/js/amazeui.min.js")
    @Scripts.Render("http://cdn.amazeui.org/amazeui/2.5.2/js/amazeui.ie8polyfill.min.js")
    @Scripts.Render("http://cdn.amazeui.org/amazeui/2.5.2/js/amazeui.widgets.helper.min.js")
    <script src="~/Content/jquery/jquery.validate.js"></script>
    @Styles.Render("~/Content/layer/css/")
    @Scripts.Render("~/Content/layer/js")
    <script src="~/Content/js/common/underscore.js"></script>
    <script src="~/Content/laypage/laypage/laypage.js"></script>
    <script src="~/Content/js/common/common-v1.js"></script>
    <script src="~/Content/js/common/auto-load-button-status.js"></script>
    <script src="~/Content/avalon/avalon.js"></script>
    <link href="~/Content/amaze/admin.css" rel="stylesheet" />
    @RenderSection("styles", false)
    <style>
        .pagination ul {
            overflow: hidden;
            list-style: none;
            padding: 0;
            margin: 0;
        }

            .pagination ul li {
                float: left;
                width: 30px;
                display: inline-block;
                border: 1px solid #0094ff;
                border-right: none;
            }

                .pagination ul li:last-child {
                    border: 1px solid #0094ff;
                }

                .pagination ul li a {
                    padding: 1px 5px;
                    display: block;
                    text-align: center;
                }

                .pagination ul li.pagination-info {
                    width: 150px;
                }

                .pagination ul li.active a {
                    background-color: green;
                    color: #fff;
                }

        #menus .am-u-sm-2 {
            padding: 0;
            margin: 0;
        }

        .userinfo {
            text-align: right;
            color: #fff;
        }

            .userinfo a {
                color: red;
            }
    </style>
</head>
<body>
    <!--[if lte IE 9]>
        <script src="~/Content/common/json2.js"></script>
    <p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a href="http://browsehappy.com/" target="_blank">升级浏览器</a>
      以获得更好的体验！</p>
    <![endif]-->

    <header class="am-topbar admin-header">
        <div class="am-topbar-brand">
            <strong>新</strong> <small>管理后台</small>
        </div>

        <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>

        <div class="am-collapse am-topbar-collapse" id="topbar-collapse">

            <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list">
                @*<li><a href="javascript:;"><span class="am-icon-envelope-o"></span>收件箱 <span class="am-badge am-badge-warning">5</span></a></li>*@
                <li class="am-dropdown" data-am-dropdown>
                    <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">
                        @if (UserSession.User != null)
                        {
                            <span href="#" class="am-icon-users">&nbsp;@UserSession.User.FullName <span class="am-icon-caret-down"></span></span>
                        }
                    </a>
                    <ul class="am-dropdown-content">
                        <li><a href="#"><span class="am-icon-user"></span>资料</a></li>
                        <li><a href="#"><span class="am-icon-cog"></span>修改密码</a></li>
                        <li><a href="/secure/loginout"><span class="am-icon-power-off"></span>退出</a></li>
                    </ul>
                </li>
                @*<li class="am-hide-sm-only">
                    <a href="javascript:;" id="admin-fullscreen">
                        <span class="am-icon-arrows-alt"></span>
                        <span class="admin-fullText">开启全屏</span>
                    </a>
                </li>*@
            </ul>
        </div>
    </header>

    <div class="am-cf admin-main">
        <!-- sidebar start -->
        <div class="admin-sidebar am-offcanvas" id="admin-offcanvas">
            <div class="am-offcanvas-bar admin-offcanvas-bar">
                <ul class="am-list admin-sidebar-list">
                    <li id="manager">
                        <a href="/manager">
                            <span class="am-icon-tachometer"></span>
                        </a>
                    </li>
                    @*<li>
                        <a href="/article/list">
                            <span class="am-icon-database"></span>
                        </a>
                    </li>*@
                    <li>
                        <a href="/post/list" title="文章管理">
                            <span class="am-icon-file-text-o"></span>
                        </a>
                    </li>
                    <li>
                        <a href="/category/list" title="类目管理">
                            <span class="am-icon-folder"></span>
                        </a>
                    </li>
                    <li>
                        <a href="/singlepage/list" title="页面管理">
                            <span class="am-icon-file"></span>
                        </a>
                    </li>


                    @* <li class="admin-parent">
                            <a class="am-cf" data-am-collapse="{target: '#collapse-nav'}"><span class="am-icon-file"></span>页面模块 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>
                            <ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav">
                                <li><a href="admin-user.html" class="am-cf"><span class="am-icon-check"></span>个人资料<span class="am-icon-star am-fr am-margin-right admin-icon-yellow"></span></a></li>
                                <li><a href="admin-help.html"><span class="am-icon-puzzle-piece"></span>帮助页</a></li>
                                <li><a href="admin-gallery.html"><span class="am-icon-th"></span>相册页面<span class="am-badge am-badge-secondary am-margin-right am-fr">24</span></a></li>
                                <li><a href="admin-log.html"><span class="am-icon-calendar"></span>系统日志</a></li>
                                <li><a href="admin-404.html"><span class="am-icon-bug"></span>404</a></li>
                            </ul>
                        </li>*@
                    <li><a href="/member/list" title="用户管理"><span class="am-icon-users"></span></a></li>
                    <li><a href="/site/index" title="设置"><span class="am-icon-gear"></span></a></li>
                    <li><a href="/site/menu" title="菜单设置"><span class="am-icon-bars"></span></a></li>
                    <li><a href="/site/slider" title="幻灯片管理"><span class="am-icon-cube"></span></a></li>
                    <li><a href="/site/cache" title="缓存 & 页面 管理"><span class="am-icon-recycle"></span></a></li>
                    <li><a href="/collection/page" title="采集"><span class="am-icon-recycle"></span></a></li>
                </ul>

                <div class="am-panel am-panel-default admin-sidebar-panel">
                </div>
            </div>
        </div>
        <!-- sidebar end -->
        <script>
            //layer.tips('管理首页', '#manager');
        </script>
        <!-- content start -->
        <div class="admin-content">
            @RenderBody()
        </div>
        <!-- content end -->

    </div>

    <a href="#" class="am-show-sm-only admin-menu" data-am-offcanvas="{target: '#admin-offcanvas'}">
        <span class="am-icon-btn am-icon-th-list"></span>
    </a>

    <footer>
        <hr>
        <p class="am-padding-left">© 2014 AllMobilize, Inc. Licensed under MIT license.</p>
    </footer>

    @RenderSection("scripts", required: false)
</body>
</html>

